VtLabel


Create a Label widget

Syntax

VtLabel object_name [options]

Description

Creates a Label. Returns the widget name.

Options

All the Label class options are available.

Example

The following code produces a label positioned in the center of a FormDialog. The label is attached to the right and bottom sides of the FormDialog so that the label remains centered after resizing.

set app [VtOpen demo]

set form [VtFormDialog $app.fn -title "VtLabel Demo" ]
VtLabel $form.lab \
        -label "Kumquats" \
        -labelCenter \
        -rightSide FORM \
        -bottomSide FORM

VtShow $form
VtMainLoop

This code produces the following:

See also: